#ifndef   __FU_FLASH_H__
#define   __FU_FLASH_H__

#include "stdint.h"
#include "at32f403a_407.h"











void read_byte_internal_flash(uint32_t read_addr, uint8_t *p_buffer, uint16_t num_read);
void read_halfword_internal_flash(uint32_t read_addr, uint16_t *p_buffer, uint16_t num_read);
void read_word_internal_flash(uint32_t read_addr, uint32_t *p_buffer, uint16_t num_read);

error_status write_byte_internal_flash(uint32_t write_addr,uint8_t *p_buffer,uint16_t num_write);
error_status write_halfword_internal_flash(uint32_t write_addr,uint16_t *p_buffer,uint16_t num_write);
error_status write_word_internal_flash(uint32_t write_addr,uint32_t *p_buffer,uint16_t num_write);





#endif

